<?php

/**
 * Controller.php
 */
class Controller extends CController {

    public function __construct($id, $module = null) {
        parent::__construct($id, $module);
    }

	protected function toJSON($data, $returnCode = 200){
		echo CJSON::encode($data);
		
		//set header pls
		
		app()->end();
	}


}
